package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zhiHaoD
 * @since 2022/11/22 21:07
 */
@Mapper
public interface MemberDao {

    /**
     * 根据手机号查询会员
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /**
     * 新增会员
     * @param member
     */
    void add(Member member);

    Object findTodayNewMember(String newDate);

    Object findTotalMember();

    Object findThisWeekNewMember(String week);

    Object findThisMonthNewMember(String month);
}
